<template>
	<view class="my-search-container" :style="{'background-color':bgColor}" @click="searchHandler">
		<!-- 使用 view 组件模拟 input 输入框的样式 -->
		<view class="my-search-box" :style="{'border-radius':radius+'px'}">
			<!-- 使用uni-icons组件 -->
			<uni-icons type="search" size="17"></uni-icons>
			<text class="placeholder">搜索</text>
		</view>
	</view>
</template>

<script src="./my-search.js"></script>

<style lang="scss">
	@import "./my-search.scss"
</style>
